﻿using System.Collections.ObjectModel;
using CI.Models;

namespace CI.ViewModels.Industry
{
    internal class JobCache
    {
        private readonly ObservableCollection<IJob> _jobs = new ObservableCollection<IJob>();

        internal void AddJob(IJob job)
        {
            if (!HasJob(job))
                _jobs.Add(job);   
        }

        internal bool HasJob(IJob job) {
            return _jobs.Contains(job); }

        internal ObservableCollection<IJob> Jobs { get { return _jobs; } }
    }
}